package com.lagou.edu.service;

import com.lagou.edu.context.annotation.Transactional;

/**
 * @author 应癫
 */
public interface TransferService {

    /**
     * 转账方法
     *
     * @param fromCardNo 转出账号
     * @param toCardNo   转入账号
     * @param money      转账金额
     * @throws Exception 异常
     */
    @Transactional
    void transfer(String fromCardNo, String toCardNo, int money) throws Exception;
}
